Ektron CMS400.Net Reference

>>Using Other Development Frameworks > CustomJSPFunctions > Content Block Function

Content Block Function

The ecmContentBlock and ecmContentBlockEX functions are used to display a content block on an Ektron CMS400.NET Web page.

Shown here is the format for the ecmContentBlock function:

<%= ecmContentBlock (int id) %>

Here is the format for the ecmContentBlockEX function:

<%= ecmContentBlockEX (int id, String xslt, int OverrideId) %>

These function is basically the same as the Content Block functions in ASP. See Content Block Function for details.

The only difference between the JSP function and the ASP one is the examples of implementing it. The JSP examples are below.

Static Content Block

<tr>

   <td>

      <%= ecmContentBlock(1) %>

   </td>

</tr>

Dynamic Content Block

<tr>

   <td>

      <%= ecmContentBlock($id) %>

   </td>

</tr>

XML Content Block

<tr>

    <td>

       <%= ecmContentBlockEx (13, “”, 1) %>

    </td>

</tr>


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.